package cn.wolfcode.trip.api.controller;

import cn.wolfcode.trip.base.domain.ReturnMoney;
import cn.wolfcode.trip.base.service.IReturnMoneyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("returns")
public class ReturnMoneyController {

    @Autowired
    private IReturnMoneyService returnMoneyService;
    @GetMapping("{id}")
    public List<ReturnMoney> selectAll(@PathVariable Long id){
        return returnMoneyService.selectAll(id);
    }
}
